import request from '@/utils/request'

export function getRoleList(query) {
    return request({
        url: 'system/role/list',
        method: 'get',
        params: query
    })
}

export function addRole(data) {
    return request({
        url: 'system/role/add',
        method: 'post',
        data
    })
}

export function editRole(data) {
    return request({
        url: 'system/role/edit',
        method: 'post',
        data
    })
}

export function delRole(data) {
    return request({
        url: 'system/role/del',
        method: 'post',
        data
    })
}
